/* 
* Copyright (c) 2009, SCUT 06级计科2班软件工程第6小组
* All rights reserved. 
*
* 摘    要：数字档案馆全局信息集中存放于此，如数据访问层接口的默认实现DataAccess等
*
*/
using System;
public static class DAMS
{
	//数据访问层接口的默认实现
	public static IDataAccess DataAccess{
		get{
			return s_sqlDataAccess;
		}
	}
//连接字符串
	//1、本地数据库服务器,windows身份验证
	//public const String CONNECTIONSTRING = "server=localhost;database=DAM;Integrated Security=True";
	//2、实验室数据库服务器(CaiWeiLin)，SQL身份验证
	//public const String CONNECTIONSTRING = "server=222.201.144.149;database=DAM;uid=sa;pwd=123456";
	//3、本地数据库服务器，SQL身份验证（用户名test，密码test123456)
 	public const String CONNECTIONSTRING = "server=localhost;database=dam;uid=test;pwd=test123456";

	private static SqlDataAccess s_sqlDataAccess=new SqlDataAccess();

}
